projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e7a5d6f
)
blktap2: Fix non-Linux build
author
Keir Fraser
<keir.fraser@citrix.com>
Fri, 5 Feb 2010 13:57:20 +0000
(13:57 +0000)
committer
Keir Fraser
<keir.fraser@citrix.com>
Fri, 5 Feb 2010 13:57:20 +0000
(13:57 +0000)
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
tools/blktap2/drivers/tapdisk-queue.c
patch
|
blob
|
history
diff --git
a/tools/blktap2/drivers/tapdisk-queue.c
b/tools/blktap2/drivers/tapdisk-queue.c
index 1e48bd946efb07800805efc8bd476ba1d64816ef..b6394bfdad0253d18d1bb27966cc423c05c0237a 100644
(file)
--- a/
tools/blktap2/drivers/tapdisk-queue.c
+++ b/
tools/blktap2/drivers/tapdisk-queue.c
@@
-287,7
+287,11
@@
struct lio {
static int
tapdisk_lio_check_resfd(void)
{
+#if defined(__linux__)
return tapdisk_linux_version() >= KERNEL_VERSION(2, 6, 22);
+#else
+ return 1;
+#endif
}
static void